package site.lanmushan.generate.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import site.lanmushan.generate.entity.Column;
import site.lanmushan.generate.entity.Table;

import java.util.List;

/**
 * @author Administrator
 */
@Mapper
public interface GenerateTableMapper {
    /**
     *
     * @param dataBaseName
     * @return
     */
    List<Table> selectAllTable(@Param("dataBaseName") String dataBaseName);

    /**
     *
     * @param tableName
     * @param dataBaseName
     * @return
     */
    List<Column> selectColumnByTable(@Param("tableName") String tableName, @Param("dataBaseName") String dataBaseName);

}
